package com.stool.nettyupload;

import com.stool.nettyupload.server.HttpUploadServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class NettyUploadApplication implements CommandLineRunner{

	@Autowired
	HttpUploadServer server;

	public static void main(String[] args) {
		SpringApplication.run(NettyUploadApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		server.start();
	}
}
